package com.personal.website.lottery.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * Created by 10171225 on 2016/4/7.
 */
public class PropertiesUtil {
    public static Properties getProperty(String propertyPath){
        String path = PropertiesUtil.class.getClassLoader().getResource(propertyPath).getPath();
        Properties prop = new Properties();
        try {
            prop.load(new FileInputStream(path));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return prop;
    }
}
